// 地图数据

export function getMapData(){
	return Promise.all([
		new Promise((resolve,reject)=>{
			$.ajax({
				url: `${baseUrl}/disease_foreign.json`,
				success(res) {
					let foreinData;
					foreinData = JSON.parse(res.data);
					const foreignData = setForeignData(foreinData.foreignList);
					resolve(foreignData)
				}})
			}),
		new Promise((resolve,reject)=>{
			$.ajax({
				url: `${baseUrl}/disease_h5.json`,
				success(res1) {   //注意res不能和上面的重复
					let chinaData;
					chinaData = JSON.parse(res1.data);
					const chinaMapData = {name:'中国',confirm:chinaData.chinaTotal.confirm,nowConfirm:chinaData.chinaTotal.nowConfirm}
					resolve(chinaMapData);
				}
			});
	   })
    ])
} 